#ifndef MAIN_H_
#define MAIN_H_

#define MODE_CLOCK      0
#define MODE_MENU       1
#define MODE_MAXLIGHT   2
#define MODE_DEBUG      3
#define MODE_WAKE_UP    4
#define MODE_SET_ALARM  5

struct
{
  volatile char button_left               :1;
  volatile char button_right                :1;
  volatile char button_back               :1;
  volatile char button_ok                 :1;
   volatile char alarm                   :1;
  volatile char with_light                  :1;
  volatile char with_sound                    :1;
  volatile char dimmer_duration                 :2;
  volatile char menu_drawn                :1;
} flags;

#endif /*MAIN_H_*/

